/*
Here we declare utility scripts that are short and belong to no particular file, 
rather than putting them inside the templates.
*/

/* Toggle Hide and Show of the subject tree widget when adding/editing */
function subject_tree_toggle() {
	var ele = document.getElementById("SubTreeToggleText");
	var text = document.getElementById("SubTreeDisplayText");
	if(ele.style.display == "block") {
    		ele.style.display = "none";
		text.innerHTML = "[+] Show Subject Tree";
  	}
	else {
		ele.style.display = "block";
		text.innerHTML = "[-] Hide Subject Tree";
	}
} 
